package com.hou;

import java.io.*;
import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) throws IOException {
        //Scanner 新增三个构造器,都需要Charset参数
        //指定编码
        var scanner = new Scanner(new FileInputStream(new File("out.txt")),"gbk");
        while(scanner.hasNext()){
            System.out.println(scanner.nextLine());
        }
    }
}
